const baseUrl='https://www.fastmock.site/mock/fba501189fb73c485afb01966e5f79da/pet'
export  function http(options){
	uni.request({
		url:baseUrl+options.url,
		data:options.data,
		method:'POST',
		success(res){
			
			options.success?options.success(res):''
		},
		fail(err){
			uni.showToast({
							title: "请求接口失败"
						})
			setTimeout(()=>{
				uni.hideToast()
			},2000)
			options.fail?options.fail(err):''
		}
	})
}